import { defineConfig } from '@umijs/max';
import proxy from './proxy';
import routes from './routes';
export default defineConfig({
  plugins: [require.resolve('umi-plugin-antd-style')],
  antdStyle: {
    appearance: 'light',
  },
  antd: {
    theme: {
      token: {
        colorPrimary: '#00bdff',
      },
      components: {
        Button: {
          defaultColor: '#00bdff',
          defaultBorderColor: '#00bdff',
          defaultHoverBg: '#00bdff',
          defaultHoverColor: '#fff',
        },
      },
    },
  },
  title: '腾云人资',
  access: {},
  model: {},
  initialState: {},
  request: {},
  layout: {
    title: '腾云人资',
  },
  headScripts: [
    // 解决首次加载时白屏的问题
    { src: '/loading.js', async: true },
  ],
  routes,
  npmClient: 'yarn',
  tailwindcss: {},
  proxy,
});
